package DianShang_2024.ds_server.indicator

import org.apache.spark.sql.SparkSession

object test {
  def main(args: Array[String]): Unit = {
    //  准备sparksql的环境
    val spark = SparkSession.builder()
      .master("local[*]")
      .appName("指标计算第七题")
      .enableHiveSupport()
      .getOrCreate()

//    spark.sql("select create_time  from dwd_server.fact_order_master limit 20").show

    spark.sql("select date_sub('2022-03-15',1) ").show

    spark.close()
  }

}
